$def with(edition_key)

$ locateUrl = "/books/XXX/-/borrow?action=locate".replace('XXX', edition_key or '')

<a class="cta-btn cta-btn--available cta-btn--w-icon cta-btn--external" href="$locateUrl" target="_blank"
  data-ol-link-track="CTAClick|Locate">$_('Locate')</a>
